import service from '@/utils/request'

// @Tags UserBanner
// @Summary 创建UserBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBanner true "创建UserBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userBanner/createUserBanner [post]
export const createUserBanner = (data) => {
     return service({
         url: "/userBanner/createUserBanner",
         method: 'post',
         data
     })
 }


// @Tags UserBanner
// @Summary 删除UserBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBanner true "删除UserBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userBanner/deleteUserBanner [delete]
 export const deleteUserBanner = (data) => {
     return service({
         url: "/userBanner/deleteUserBanner",
         method: 'delete',
         data
     })
 }

// @Tags UserBanner
// @Summary 删除UserBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userBanner/deleteUserBanner [delete]
 export const deleteUserBannerByIds = (data) => {
     return service({
         url: "/userBanner/deleteUserBannerByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserBanner
// @Summary 更新UserBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBanner true "更新UserBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userBanner/updateUserBanner [put]
 export const updateUserBanner = (data) => {
     return service({
         url: "/userBanner/updateUserBanner",
         method: 'put',
         data
     })
 }


// @Tags UserBanner
// @Summary 用id查询UserBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserBanner true "用id查询UserBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userBanner/findUserBanner [get]
 export const findUserBanner = (params) => {
     return service({
         url: "/userBanner/findUserBanner",
         method: 'get',
         params
     })
 }


// @Tags UserBanner
// @Summary 分页获取UserBanner列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserBanner列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userBanner/getUserBannerList [get]
 export const getUserBannerList = (params) => {
     return service({
         url: "/userBanner/getUserBannerList",
         method: 'get',
         params
     })
 }